#include "qtuiolistener.h"
#include "TUIO/TuioListener.h"
#include "TUIO/TuioObject.h"
#include "TUIO/TuioCursor.h"
#include "TUIO/TuioTime.h"
#include <QMouseEvent>
#include <QPoint>
#include <QEvent>
#include <QApplication>
#include <QWidget>
#include <QMainWindow>
#include "stdio.h"
#include <QDebug>

QTuioListener::QTuioListener()
{
}

void QTuioListener::addTuioObject(TuioObject *tobj){

}

void QTuioListener::updateTuioObject(TuioObject *tobj){

}

void QTuioListener::removeTuioObject(TuioObject *tobj){

}

void QTuioListener::addTuioCursor(TuioCursor *tcur){
    emit touch(tcur->getCursorID(), tcur->getX(), tcur->getY(), TouchType(TOUCHDOWN));

}

void QTuioListener::updateTuioCursor(TuioCursor *tcur){
    emit touch(tcur->getCursorID(), tcur->getX(), tcur->getY(), TouchType(TOUCHMOVE));

}

void QTuioListener::removeTuioCursor(TuioCursor *tcur){
    emit touch(tcur->getCursorID(), tcur->getX(), tcur->getY(), TouchType(TOUCHUP));

}

void QTuioListener::refresh(TuioTime frameTime) {
    return;
}
